package pers.cz.service.impl;

import pers.cz.business.UserBusiness;
import pers.cz.mapper.PostgirlMapper;
import pers.cz.model.PostgirlDtl;
import pers.cz.pub.BeanHelper;
import pers.cz.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: PostGirl-panent
 * @description: loadUserByUserNameServiceImpl
 * @author: Cheng Zhi
 * @create: 2021-03-30 12:49
 **/
@Service
public class UserDetailServiceImpl implements UserService {

    @Autowired
    PostgirlMapper userMapper;

    @Autowired
    private BeanHelper beanHelper;

    @Override
    public PostgirlDtl selectUserDtlByUserId(int userId) {

        UserBusiness userBusiness = new UserBusiness();
        userBusiness.setMapper(beanHelper);

        return userBusiness.getUserDtlByUserId(userId);
    }
}
